{include file="admin/public/header" /}

<style type="text/css">
    .tab-pane{padding-top: 20px;padding: 20px;}
</style>
    <div class="row">
    <div class="col-sm-12">
    <div class="tabs-container">
            <div style="clear:both;height:20px"></div>
            <div class="tab-content">
                <div id="tab-1" class="tab-pane active">
                     <div class="ibox float-e-margins">
                            <div class="row">
                                <div class="col-sm-12 b-r">
                                   <div class="ibox-title">
                                        <a class="label label-primary pull-right " id="admin" href="/plus/caiji/index/edit">添加规则</a>
                                        <h5>采集规则列表</h5>
                                    </div>
                                    <div class="ibox-content">
                                     
<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <h3>
               采集规则列表
            </h3>
        </div>
        <div class="mod-body tab-content">
            <div class="tab-pane active" id="list">

               
                <input type="hidden" id="action" name="action" value="" />
                <div class="table-responsive">
                <?php if ($list) { ?>
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                <th><input type="checkbox" class="check-all"></th>
                                <th>id</th>
                                <th>标题</th>
                                <th>URL</th>
                                <th>分类ID</th>
                                <th>s-e{id}</th>
                                <th>s-e{uid}</th>
                                <th>title先择器</th>
                                <th>内容选择器</th>
                                <th>回复选择器</th>
                                <th>新建时间</th>
                                <th>回复时间</th>
                                <th>所属类型</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($list AS $key => $v) { ?>
                            <tr>
                                <td><input type="checkbox" name="ids[]" value="{$v.id}"></td>
                                <td><span  class="btn btn-default btn-xs">{$v.id}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.title}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.url}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.category_id}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.star_id}</span><br/><span  class="btn btn-default btn-xs">{$v.end_id}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.star_uid}</span><br/><span  class="btn btn-default btn-xs">{$v.end_uid}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.title_choose}</span><br/><span  class="btn btn-default btn-xs">{$v.title_attr}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.content_choose}</span><br/><span  class="btn btn-default btn-xs">{$v.content_attr}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.answer_choose}</span><br/><span  class="btn btn-default btn-xs">{$v.answer_attr}</span></td>
                                <td><span  class="btn btn-default btn-xs">{$v.creat_star_time}</span><br/><span  class="btn btn-default btn-xs">{$v.creat_end_time}</span></span></td>
                                <td>
                                <span  class="btn btn-default btn-xs">{$v.answer_star_time}</span><br/><span  class="btn btn-default btn-xs">{$v.answer_end_time}</span></td>
                                <td><span  class="btn btn-warning btn-xs">{if condition="$v['type']=='question'""}问题{else}文章{/if}</span></td>
                                <td>
                                <a target="_blank" class="btn btn-info btn-xs" href="{:url('plus/caiji/docaiji',['id'=>$v['id']])}">开始采集</a>
                                <!-- <a target="_blank" class="btn btn-success btn-xs" href="">导出</a> -->
                                <a target="" class="btn btn-primary btn-xs" href="{:url('plus/caiji/edit',['id'=>$v['id']])}"  >修改</a>
                                <a target="" class="btn btn-primary btn-xs" href="{:url('plus/caiji/test',['id'=>$v['id']])}" target="_blank" >测?</a>
                                <a  class="btn btn-danger btn-xs cmzdel" table="{:encode('tool_caiji')}" where="{:encode('id-'.$v['id'])}">删除规则</a>
                                </td>
                            </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                <?php } ?>
                </div>
           
                <div class="mod-table-foot">
                    

                    <a class="btn btn-danger" ><?php e('删除'); ?></a>
                </div>
            </div>

           
           
       
</div>

<script type="text/javascript">
    $('.search').click(function(event) {
        keyword=$("input[name='keyword']").val();
        category_id = $("#category_id option:selected").val(); 
        user_name= $("input[name='user_name']").val();
        // answer_count_min= $("input[name='answer_count_min']").val();
        // answer_count_max= $("input[name='answer_count_max']").val();
        // best_answer= $("input[name='best_answer']").val();
        window.location.href="?keyword="+keyword+"&category_id="+category_id+"&user_name="+user_name
    });
</script>
                                    </div>
                                </div>
                                
                            </div>  
                            <div style="clear:both;height:5px"></div> 
                            <div class="hr-line-dashed"></div>
                             
                             
                             <div style="clear:both;height:5px"></div>    
                    </div>
                </div>
            </div>

        </div>
    </div>
        
           
</div>
<div style="clear:both;"></div>
 <div>
     
  
    </div>


           
   </form>

{include file="admin/public/footer" /}